package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Menu;
import com.itheima.pojo.Role;
import com.itheima.pojo.User;

import java.util.List;

public interface UserService {
    public User findByUsername(String username);

   public PageResult pageQuery(QueryPageBean queryPageBean);

    public void add(User user, Integer[] roleIds) throws Exception;
    public User findById(Integer id);
    public List<Integer> findRoleIdsByUserId(Integer id);

    public void edit(User user, Integer[] roleIds);

    public void delete(Integer id);

    public List<Menu> findMenuByUsername(String username);
}
